import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:largefriends/res/lf_color.dart';
import 'package:largefriends/res/lf_double_ext.dart';
import 'package:largefriends/res/lf_fonts.dart';
import 'package:largefriends/res/lf_text_style.dart';

class LfCategoryWidget extends StatelessWidget {
  const LfCategoryWidget({super.key, required this.title, required this.child});
  final String title;
  final Widget child;
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(vertical: 10.h),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            title,
            style: lfTextStyle(
                sp: 17.sp, fontFamily: fontBold, color: color514F62),
          ),
          10.h.sbh,
          Container(
            child: child,
          )
        ],
      ),
    );
  }
}
